package com.canxin.tools;

public class StringTools {
	 public static String addZeroForNum(String str, int strLength,String ch) {
		  int strLen = str.length();
		  if (strLen < strLength) {
		   while (strLen < strLength) {
		    StringBuffer sb = new StringBuffer();
		    sb.append(ch).append(str);//左补0
//		    sb.append(str).append("0");//右补0
		    str = sb.toString();
		    strLen = str.length();
		   }
		  }
		return str;
	 }
}
